# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osmo
_ver=0.4.4
pkgver=${_ver/-/.}
pkgrel=0
pkgdesc="A handy personal organizer"
url="http://clayo.org/osmo/"
arch="all !mips !mips64" # webkit2gtk is missing
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev libnotify-dev libical-dev libxml2-dev libxml2-utils
	webkit2gtk-dev autoconf automake"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/osmo-pim/osmo-$_ver.tar.gz
	osmo-0.2.10-build-mo.patch
	"

prepare() {
	default_prepare
	sed -i -e 's/-Werror//' configure.ac
	autoreconf -vif
}

build() {
	CFLAGS="$CFLAGS -I/usr/include/libical"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="2aa72933ec23dba236c3ff0f9d7a86fe3dcf80eaa7bad521866e22020d71ac883cbbb91a9fe444dbca3d651459b1c2b387c253cfadac39ba3d4fcab730010e08  osmo-0.4.4.tar.gz
c9e49a3177f6135b2cedc00b0bc36ef7421a34941349bcfe242702dcfb5ebf13907d0ae8f8af1e26065b21e53f29e69c1fe36fd6724bfbb86556c3df828c8f23  osmo-0.2.10-build-mo.patch"
